# frozen_string_literal: true

FactoryBot.define do
  sequence(:rule_condition_seq_ordinal) { |n| n }
  sequence(:rule_condition_seq_lvalue) { |n| "rule_condition_lvalue_#{n}" }

  factory :rule_condition do
    association :general_rule, factory: :rule_entity_general_rule_condition_any

    ordinal { generate :rule_condition_seq_ordinal }
    lvalue { generate :rule_condition_seq_lvalue }
    operator { '=' }
    rvalue { '' }
  end
end
